<?xml version="1.0" encoding="UTF-8"?>
<!-- XBRL 2.1 Tests -->
<!-- Copyright 2003 XBRL International Inc.  See www.xbrl.org/legal.  All Rights Reserved. -->
<?xml-stylesheet type="text/xsl" href="../../testcase.xsl"?>
<testcase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Identifier Scope" description="Relevant sections for calculation binding rules 5_2_5_2 and 4_6_6" outpath="out" owner="neil.wills@ubmatrix.com" xsi:noNamespaceSchemaLocation="../lib/test.xsd" minimal="true">

        <variation id="V-00" name="v00-CalculationWithPrecision3-Consistent">
                <description>320.00 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-00-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-01" name="v01-CalculationWithPrecision2-InConsistent">
                <description>320.01 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-01-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-02" name="v02-CalculationWithPrecision3-InConsistent">
                <description>320.02 - InValid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-02-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-03" name="v03-CalculationWithPrecision3-InConsistent">
                <description>320.03 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-03-nestedtupleBindCalc.xsd</xsd>
                        <instance readMeFirst="true">320-03-nestedtupleBindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-04" name="320-04-BindCalculationInferPrecision-instance.xbrl">
                <description>320.04 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-04-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>
        
        <variation id="V-05" name="320-05-BindCalculationInferPrecision-instance.xbrl">
                <description>320.05 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-05-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <!--variation id="V-06" name="320-06-BindCalculationInferPrecision-instance.xbrl">
                <description>320.06 - inValid - inconsistent</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-06-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation-->

        <variation id="V-07" name="320-07-BindCalculationInferPrecision-instance.xbrl">
                <description>320.07 - inValid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-07-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <!--variation id="V-08" name="320-08-BindCalculationInferPrecision-instance.xbrl">
                <description>320.08 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-08-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation-->

        <variation id="V-09" name="320-09-BindCalculationInferPrecision-instance.xbrl">
                <description>320.09 - Valid</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-09-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-10" name="320-10-BindCalculationInferPrecision-instance.xbrl">
                <description>320.10 - Valid - precision stated as 15</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-10-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-11" name="320-11-BindCalculationInferPrecision-instance.xbrl">
                <description>320.11 - inValid - inconsistent</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-11-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-12" name="320-12-BindCalculationInferPrecision-instance.xbrl">
                <description>320.12 - Valid - Consistent - precision attribute stated as 15</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-12-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-13" name="320-13-BindCalculationInferPrecision-instance.xbrl">
                <description>320.13 - Valid - Consistent</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-13-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-14" name="320-14-BindCalculationInferPrecision-instance.xbrl">
                <description>320.14 - Valid - Consistent</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-14-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-15" name="320-15-BindCalculationInferPrecision-instance.xbrl">
                <description>320.15 - Valid - COnsistent - Decimal attribute zero</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-15-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>

        <variation id="V-16" name="320-16-BindCalculationInferPrecision-instance.xbrl">
                <description>320.16 - InValid - Inconsistency contributing items 3200, summation value is 3201</description>
                <data>
                        <xsd readMeFirst="false">320-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-16-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-17" name="320-17-BindCalculationInferPrecision-instance.xbrl">
                <description>320.17 - InValid - Inconsistent roll up - weights stated as 1.0</description>
                <data>
                        <xsd readMeFirst="false">320-17-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-17-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-18" name="320-18-BindCalculationInferPrecision-instance.xbrl">
                <description>320.18 - InValid - 2.04 effective value generates inconsistent roll up - weight is defined as 1.01</description>
                <data>
                        <xsd readMeFirst="false">320-18-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-18-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-19" name="320-19-BindCalculationInferPrecision-instance.xbrl">
                <description>320.19 - InValid - effective value 1.02 generates inconsistent roll up - weight is defined as 1.01</description>
                <data>
                        <xsd readMeFirst="false">320-18-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-19-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="invalid"/>
        </variation>

        <variation id="V-20" name="320-20-BindCalculationInferPrecision-instance.xbrl">
                <description>320.20 - Valid - Consistent roll up - weight is defined as 1.01</description>
                <data>
                        <xsd readMeFirst="false">320-18-BindCalculationInferPrecision.xsd</xsd>
                        <instance readMeFirst="true">320-20-BindCalculationInferPrecision-instance.xbrl</instance>
                </data>
                <result expected="valid"/>
        </variation>
</testcase>
